EditionHasFormat
formatSize);
FormatType whichFormat; indicates the format type for the edition Size * formatSize ; specifies the format length data is available.
whichEdition specifies the reference number for the edition
whichFormat indicates the format type that you are requesting. For the
whichFormat parameter, you should decide which formats to read in
the same way that you do when using paste from the
Scrap Manager. You can also get a list of all the available formats and their respective lengths by reading the kFormatListFormat
('fmts') format..
formatSize specifies the format length.
noErr (0) No error
rfNumErr (-51) Bad edition reference number
noTypeErr (-102) Format not available
editionMgrInitErr (-450) Manager not initialized
Notes: If the requested format is available, this function returns noErr, and the
formatSize parameter returns the size of the data in the specified format
or kFormatLengthUnknown (-1), which signifies that the size is unknown.
You should therefore continue to read the format until there is no more data.
kFormatLengthUnknown for the length of the format.